package com.homework.str;

public class test3 {
  public static void main(String[] args) {
    // 将字符串“java@oracle.com“中”@”与”.“之间的字符串截取出来
    String s = "java@oracle.com";
    String[] sarr = s.split("\\.");
    String[] sarr1 = sarr[0].split("@");
    System.out.println(sarr1[1]);
  }
}
